/**
 * @Author: 田乐
 * @Date: 2019/08/27
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019/08/27
 */
const RouteView = () => import('@/layout/RouteView');
// 异步路由组件加载
const AsyncComponent = __name__ => () => import(`@/pages/${__name__}`);

// 菜单路由
const menuRoutes = [{
  path: '/omYxzs',
  meta: {
    title: '营销助手后台管理',
    icon: 'el-icon-s-tools'
  },
  redirect: '/omYxzs',
  component: RouteView,
  children: [{
      path: '/omYxzs/omYxzs',
      meta: {
        title: '营销助手后台管理'
      },
      redirect: '/omYxzs/omYxzs',
      component: RouteView,
      children: [{
        path: '/omYxzs/omYxzs/omJump/index',
        meta: {
          title: '营销助手后台管理',
          keepAlive: true
        },
        component: AsyncComponent('omYxzs/omYxzs/omJump/index')
      }, ]
    },

  ]
}];

export default menuRoutes;
